package com.wangrui.dao;

import java.util.List;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import com.wangrui.entity.User;

public interface UserMapper3 {
    @Select("select * from user where id=#{id}")
    public User findById(String Id);

    @Insert("insert into user(name, age) values(#{name}, #{age})")
    public int add(User user);

    @Select("select * from user")
    public List<User> getAll();
}